import Vue from 'vue'
import App from './App.vue'
//mock环境,要执行到mock中的代码
import 'mock/mock'
import "nprogress/nprogress.css"
import router from 'router'
import store from 'store'
//引入全局动画的less
import 'common/css/transition.less'
Vue.config.productionTip = false
//引入全局组件
import 'util/components'
//引入elementUI
import 'util/elementUI'
//引入vee-validate环境
import 'util/vee'
//引入图片懒加载环境
import VueLazyload from 'vue-lazyload'
import loading from './loading.gif'
Vue.use(VueLazyload, {
    loading
})

//注册总线
Vue.prototype.$bus = new Vue()
new Vue({
    render: h => h(App),
    router,
    store
}).$mount('#app')
